package com.yihong.userserver.dao;

import com.yihong.userserver.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @ClassName UserDao
 * @Description
 * @Author 孟志浩
 * @Date 2019/4/2 9:52
 **/
@Mapper
@Component
public interface UserDao {

    /**
      * 查询所有符合条件的用户
     * @param words
     * @param isValid
     * @return java.util.List<com.yihong.userserver.entity.User>
      * @author 孟志浩
      * @date 2019/4/2
      **/
    List<User> findAll(@Param("words") String words, @Param("isValid") int isValid);

}
